package org.example.salesystem.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {

    int  addOrder(String OrderCode,String userphone,String Goods_code,double total_amount,String Goods_name,String buyphone);

    List<Map<String,Object>>displayOrderU(String user_phone);

    List<Map<String,Object>>displayOrderB(String Buyers_phone);

    int updateStatus(String code,String status);

    int updateOrderStatus(Map<String,Object>map);

    List<Map<String,Object>>displayOrderDY(Map<String,Object>map);
}
